package com.fg.pro.trade.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * 商品自定义单位(TradeGoodsUnit)表实体类
 *
 * @author makejava
 * @since 2025-08-12 10:10:32
 */
@SuppressWarnings("serial")
@Data
public class TradeGoodsUnit extends Model<TradeGoodsUnit> {
//主键
    private Long id;

    private Long goodsId;

    private Long goodsUnitId;
//单位名称
    private String goodsUnitName;

    private Integer goodsUnitRate;

    private Long goodsUnitParentId;

    private Long goodsUnitCreatorId;

    private String goodsUnitCreatorName;



    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}

